import React from 'react'
import Image, { StaticImageData } from 'next/image'


interface IProps {
  imgSrc: StaticImageData,
  imgAlt: string,
  content: string
}
export default function Hero(props:IProps) {
  return (
    <div className="relative h-screen">
      <div className="absolute inset-0 -z-10">
        <Image 
          src={props.imgSrc}
          alt={props.imgAlt} 
          fill={true}
          style={{objectFit: "cover"}}
        />
        <div className="absolute inset-0 bg-gradient-to-r  from-blue-950"> 
        </div>
      </div>
      <div className="flex justify-center pt-48">
        <h1 className="text-white text-5xl"> {props.content}</h1>
      </div>
    </div>
  )
}
